<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
<meta name="RSA" th:unless="${user.id}" th:content="${encryptionUtils.getRsaPublicKey(#request)}">
<th:block data-th-replace="/adminlte/base::base-head"></th:block>
</head>
<body class="hold-transition register-page">
	<div class="register-box">
		<div class="register-logo">
			<a href="/"><strong th:utext="${siteInfo.title}"></strong></a>
		</div>

		<div class="card">
			<div class="card-body register-card-body">
				<p class="login-box-msg">注册用户</p>

				<form action="/accounts/register" method="post" data-encry-type="RSA" onsubmit="return register(this);">
					<div class="input-group mb-3">
						<input type="text" class="form-control" name="username"
							placeholder="用户名" required="required">
						<div class="input-group-append">
							<div class="input-group-text">
								<span class="fas fa-user"></span>
							</div>
						</div>
					</div>
					<div class="input-group mb-3">
						<input type="password" class="form-control" name="password"
							placeholder="用户密码" required="required">
						<div class="input-group-append">
							<div class="input-group-text">
								<span class="fas fa-lock"></span>
							</div>
						</div>
					</div>
					<div class="input-group mb-3">
						<input type="password" class="form-control" placeholder="再输一次"
							required="required">
						<div class="input-group-append">
							<div class="input-group-text">
								<span class="fas fa-lock"></span>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-8">
							<div class="icheck-primary">
								<input type="checkbox" id="agreeTerms" name="terms"> <label
									for="agreeTerms"> 我同意协议 <a href="#">《用户协议》</a>
								</label>
							</div>
						</div>
						<div class="col-4">
							<button type="submit" class="btn btn-primary btn-block btn-flat">注册</button>
						</div>
					</div>
				</form>

				<a href="/admin/login" class="text-center">我已有账号，点击登录</a>
			</div>
		</div>
	</div>
	<th:block data-th-replace="/adminlte/base::base-js"></th:block>
	<script src="/kaibes/js/base.js"></script>
    <script src="/kaibes/js/toast.js"></script>
    <script src="/kaibes/js/network.js"></script>
	<script src="/admin/register.js"></script>
</body>
</html>
